[compiler:gccgo] skip # gccgo assumes cross-compilation is always possible

env GOOS=windwos

! go build -n exclude
stderr 'unsupported GOOS/GOARCH pair'